From: Jasper St. Pierre Date: Fri, 26 Aug 2011 21:33:52 +0000 (-0400) Subject: extensionSystem: Don't try to make the user extensinons dir if it exists X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7897 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4fa8e2b59d50e4d21a75be0184e478809a2da338;p=gnome-shell.git extensionSystem: Don't try to make the user extensinons dir if it exists this removes the "Error invoking Gio.make_directory_with_parents: Error creating directory: File exists" spam from the Errors tab of the Looking Glass --- diff --git a/js/ui/extensionSystem.js b/js/ui/extensionSystem.js index 38eeea3ef..5941d934a 100644 --- a/js/ui/extensionSystem.js +++ b/js/ui/extensionSystem.js @@ -392,7 +392,8 @@ function init() { let userExtensionsPath = GLib.build_filenamev([global.userdatadir, 'extensions']); userExtensionsDir = Gio.file_new_for_path(userExtensionsPath); try { - userExtensionsDir.make_directory_with_parents(null); + if (!userExtensionsDir.query_exists(null)) + userExtensionsDir.make_directory_with_parents(null); } catch (e) { global.logError('' + e); }